//DEPRECATED -- For Reference Only
//package com.team1.supervend.domain;
//
////simple test driver to run through system functions.  This file will not be
//// stable and will hopefully cover all use cases at some point.
// 
//
//public class SuperVendTestDriver {
//    static SuperVendInitializer superVendInitializer = new SuperVendInitializer();
//    
//	public static void main(String[] args){
//	
//	//create a supervend instance
//	SuperVend currentSuperVend = superVendInitializer.startSupervend();
//	
//	// Load Inventory
//	System.out.println(" ");
//	System.out.println("@@@ STARTING INVENTORY LOAD TEST @@@");
//	System.out.println("testing maintenance password");
//	//test bad password
//	currentSuperVend.setMaintMode(133);
//	System.out.println("testing add product(s)");
//	currentSuperVend.setMaintMode(1234);
//	
//	currentSuperVend.addProductInventory(1, 1.0f, "chips", 10, 5);
//	currentSuperVend.addProductInventory(2, 2.0f, "soda", 5, 2);
//	currentSuperVend.addProductInventory(3, 2.0f, "jerky", 3, 2);
//	currentSuperVend.addProductInventory(4, 5.0f, "car magazine", 3, 2);
//	currentSuperVend.addProductInventory(5, 2.0f, "sandwich", 10, 2);
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	//nominal credit workflow
//	System.out.println(" ");
//	System.out.println("@@@STARTING NOMINAL CREDIT SALE TEST @@@");
//	currentSuperVend.setMaintMode(0);
//	currentSuperVend.startSale();
//	System.out.println(" ");
//	System.out.println("***TestDrive Add Credit***");
//	currentSuperVend.makeCreditPrePayment();
//	System.out.println(" ");
//	currentSuperVend.selectItem(1, 1);
//	currentSuperVend.completeSale();
//	System.out.println("***Final Credit Payment***");
//	currentSuperVend.makeCreditPayment();
//	currentSuperVend.completeSale();
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	System.out.println(" ");
//	System.out.println("@@@STARTING NOMINAL CASH SALE TEST @@@");
//	currentSuperVend.startSale();
//	System.out.println(" ");
//	System.out.println("***TestDrive Add Cash***");
//	currentSuperVend.makeCashPayment(1.0f);
//	System.out.println(" ");
//	currentSuperVend.selectItem(1, 1);
//	currentSuperVend.completeSale();
//	System.out.println("***Final Credit Payment***");
//	currentSuperVend.makeCashPayment(1.0f);
//	currentSuperVend.completeSale();
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	System.out.println(" ");
//	System.out.println("@@@STARTING NOMINAL CASH & CREDIT SALE TEST @@@");
//	currentSuperVend.startSale();
//	System.out.println(" ");
//	System.out.println("***TestDrive Add Cash***");
//	currentSuperVend.makeCashPayment(1.0f);
//	System.out.println(" ");
//	currentSuperVend.selectItem(1, 1);
//	currentSuperVend.selectItem(2, 1);
//	currentSuperVend.selectItem(3, 1);
//	currentSuperVend.selectItem(4, 1);
//	currentSuperVend.selectItem(5, 1);
//	currentSuperVend.completeSale();
//	System.out.println("***Final Credit Payment***");
//	currentSuperVend.makeCreditPayment();
//	currentSuperVend.completeSale();
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	//test that startsale fails while in maint mode
//	System.out.println(" ");
//	System.out.println("@@@STARTING OFFNOMINAL ILLEGAL STATE TRANSITION STARTSALE WHILE MAINTENANCE @@@");
//	currentSuperVend.startSale();
//	currentSuperVend.setMaintMode(0);
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	//test start sale now that maint is false
//	System.out.println(" ");
//	System.out.println("@@@ STARTING OUT OF SEQUENCE ADD ITEM TEST @@@");
//	//test out of sequence select item
//	currentSuperVend.startSale();
//	currentSuperVend.selectItem(1, 1);
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	//test that system will not allow add inventory outside maint mode
//	System.out.println(" ");
//	System.out.println("@@@ STARTING ADD INVENTORY OUTSIDE MAINTENANCE MODE @@@");
//	currentSuperVend.addProductInventory(1, 1.0f, "chips", 1, 1);
//	System.out.println("@@@ TEST COMPLETE @@@");
//	System.out.println(" ");
//	
//	}
//}